#ifndef TOOLGROUP_H
#define TOOLGROUP_H

#include <QGroupBox>
#include<qspinbox.h>
#include<qslider.h>

class ToolGroup : public QGroupBox{
    Q_OBJECT
public:
    explicit ToolGroup(QString title,double _mn,double _mx,double _step,double _deft,double decimal,QWidget *parent=nullptr);
    double getNum();
    void slotChangeSpinBox(int);
    void slotChangeSlider(double);

private:
    double mn,mx;
    double step,deft;
    QDoubleSpinBox *pSpinBox;
    QSlider *pSlider;

signals:
    void valueChanged();
};

#endif // TOOLGROUP_H
